<?php
/*
 * @Author: zwx
 * @Date: 2024-06-26 15:45:22
 * @LastEditors: zwx
 * @LastEditTime: 2024-09-19 11:56:57
 * @Description: 私域  直播   邀约计划
 */

namespace app\apiadmin\controller\live;

use app\apiadmin\service\invitation\InvitationService;
use app\common\controller\BaseController;
use app\Request;

class Invitation extends BaseController
{

    /**
     * @author: zwx
     * @Description: 获取订单列表数据
     * @Date: 2024-05-12 11:00:52
     */
    public function getUserInfo()
    {

        $param = $this->request->post();

        //发送人信息
        $uid = $this->request->uid;

        //邀约计划
        $result = InvitationService::getUserInfo($param, $uid);

        return $result;
    }

    public function querybiaoqian()
    {
        $param = $this->request->post();

        //邀约计划
        $result = InvitationService::querybiaoqian($param);

        return $result;

    }

    public function querycontent()
    {
        $param = $this->request->post();

        //邀约计划
        $result = InvitationService::querycontent($param);

        return $result;

    }

    /**
     * @author: zwx
     * @Description: 查询标签用户信息
     * @Date: 2024-06-28 00:08:37
     */
    public function querytagUser()
    {

        $param = $this->request->post();

        //邀约计划
        $result = InvitationService::querytagUser($param);

        return $result;

    }
    /**
     * @author: oliver
     * @Description: 查询标签用户信息
     * @Date: 2024-06-28 00:08:37
     */
    public function querytagUser_no()
    {

        $param = $this->request->post();

        //邀约计划
        $result = InvitationService::querytagUser_no($param);

        return $result;

    }
    /**
     * @author: zwx
     * @Description: 查询用户信息
     * @Date: 2024-06-28 00:08:37
     */
    public function queryUser()
    {

        $param = $this->request->post();

        //邀约计划
        $result = InvitationService::queryUser($param);

        return $result;

    }

        /**
     * @author: zwx
     * @Description: 查询用户信息   根据下单时间
     * @Date: 2024-06-28 00:08:37
     */
    public function ordertime_queryUser()
    {

        $param = $this->request->post();

        //邀约计划
        $result = InvitationService::ordertime_queryUser($param);

        return $result;

    }
    
    /**
     * @author: zwx
     * @Description: 保存并发布  群发
     * @Date: 2024-06-28 18:18:37
     */
    public function savepublish()
    {

        $param = $this->request->post();

        //邀约计划
        $result = InvitationService::savepublish($param);

        return $result;
    }


    /**
     * @author: zwx
     * @Description: 邀约计划状态列表
     * @Date: 2024-06-28 18:18:37
     */
    public function getStatusList()
    {

        $param = $this->request->post();

        //邀约计划
        $result = InvitationService::getStatusList($param);

        return $result;
    }

    /**
     * 删除邀约计划
     * @author cc
     * @Date: 2024-09-08
     */
    public function deletePlan()
    {
        $param = $this->request->post();

        $param['role_id'] = $this->request->roleId;
        $param['user_name'] = $this->request->userName;
        //邀约计划
        $result = InvitationService::deletePlan($param);

        return $result;
    }

        /**
     * @author: zwx
     * @Description: 公域订单邀约统计
     * @Date: 2024-06-28 18:18:37
     */
    public function getOrderList()
    {

        $param = $this->request->post();

        //邀约计划
        $result = InvitationService::getOrderList($param);

        return $result;
    }

}
